from rest_framework.pagination import PageNumberPagination


class NormalPageNumberPagination(PageNumberPagination):
      page_size = 10 # default page size
      page_size_query_param = 'size' # ?page=xx&size=?? # 默认查询参数名为 size
      page_query_param = 'page'  # 默认查询参数名为 page
      max_page_size = 10 # max page size
